package com.jshan.blog.mapper;

import com.jshan.blog.base.admin.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
* @author jshan
* @description 针对表【sys_menu】的数据库操作Mapper
* @createDate 2025-01-20 16:42:14
* @Entity com.jshan.blog.base.admin.entity.SysMenu
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    @Select("select id, label from sys_menu where is_delete=0")
    List<Map<Integer, String>> getPartMenuList();

    @Select("SELECT permissions FROM sys_menu WHERE is_delete=0")
    Set<String> getPermAll();


    Set<String> getBatchIds(@Param("menuIds") Set<Integer> menuIds);
}




